package main

import "fmt"

type Humaner interface {
	sayHi()
}

type Person interface {
	Humaner
	sayHello()
}

type Student struct {
	name string
	age  int
}

func (this Student) sayHi() {
	fmt.Println(this.name)
}

func (this Student)sayHello()  {
	fmt.Println(this.age)
}

func main() {
	var per Person
	stu := Student{"Mr", 1}
	per = stu
	per.sayHi()
	per.sayHello()
}
